package com.naiterui.ehp.bs.doctor.service.impl;

import com.naiterui.ehp.bp.domain.DrCustomCharge;
import com.naiterui.ehp.bs.doctor.dao.IDrCustomChargeDao;
import com.naiterui.ehp.bs.doctor.service.IDrCustomChargeService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <P>功能描述 : 医生自定义服务实现 </P>
 * <P>File name : IDrCustomChargeService </P>
 * <P>Author : 王泽浩 </P>
 * <P>E-Mail : 1028625100@qq.com </P>
 * <P>Date : 2017/3/29 下午8:40</P>
 *
 * @since 2.7
 */
@Service
public class AdDrCustomChargeServiceImpl implements IDrCustomChargeService {

    /**
     * The constant LOGGER.
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(AdDrCustomChargeServiceImpl.class);


    @Autowired
    private IDrCustomChargeDao drCustomChargeDao;


    /**
     * <P>功能描述 : 保存个性化服务</P>
     * <P>Method Name : save </P>
     * <P>Author : 王泽浩 </P>
     * <P>E-Mail : 1028625100@qq.com </P>
     * <P>Date : 2017-04-01 17:08:33</P>
     *
     * @param drCustomCharge the dr custom charge
     *
     * @since 2.7
     */
    @Transactional(rollbackFor = Exception.class)
    @Override
    public void save(DrCustomCharge drCustomCharge) {
        drCustomChargeDao.saveOrUpdate(drCustomCharge);
    }


}
